package cn.stylefeng.guns.modular.basicConfig.equipment.equipmentClass.pojo.request;

import cn.stylefeng.roses.kernel.rule.pojo.request.BaseRequest;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 设备封装类
 *
 * @author PANL
 * @since 2023/12/01 14:12
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class EquipmentClassRequest extends BaseRequest {

    /**
     * 设备类型编码
     */
    @NotNull(message = "设备类型编码不能为空", groups = {edit.class, delete.class})
    @ChineseDescription("设备类型编码")
    private String eqpClassCode;

    /**
     * 设备类型名称
     */
    @ChineseDescription("设备类型名称")
    private String eqpClassName;

    /**
     * 精度
     */
    @ChineseDescription("精度")
    private String eqpPrecision;

    /**
     * 型号规格
     */
    @ChineseDescription("型号规格")
    private String specification;


    /**
     * 批量删除用的id集合
     */
    @NotNull(message = "批量删除id集合不能为空", groups = batchDelete.class)
    @ChineseDescription("批量删除用的id集合")
    private List<Long> batchDeleteIdList;

}
